<template>
    <view :style="themeColor">
        <view class="page" >

    
    
        </view>
    </view>
</template>
<script>
    
    
    export default {
        components:{},
        
        
        data(){
			return {};
		},
		computed:{
            themeColor() {
              return this.$store.getters.themeColor
            },
                         isLogin() {
      return this.$store.state.token == '' ? false : true;
    },
              userInfo: {
      get() {
        return this.$store.state.userInfo
      },
      set() {
        this.$store.commit('updateUserInfo', value)
      },
    }
		},
		watch:{},
		onLoad(options){
            this.start_runFunc()
		},
        onUnload() {
                
        },
		onReady(){
            
		},
		onShow(){
            
		},
		onHide(){
            
		},
		onResize(){
            
		},
		onPullDownRefresh(){
            
		},
		onReachBottom(e){
            
		},
		onPageScroll(e){
            
		},
		methods:{
                            //判断当前登录跳转
                 start_runFunc(){
                        if( this.isLogin===true){
            if( this.userInfo.certified_status==2){
            this.$urouter.switchTab(`/pages/tabBar/homePage/homePage`);
    }
    else{
            this.$urouter.redirectTo(`/pages/login/examines/examines`);
    }
    }
    else{
            this.$urouter.redirectTo(`/pages/tabBar/logon/logon`);
    }
                }
		}
    };
</script> 
<style lang="scss" scoped>
           .page{
            width: 100vw;
            overflow-x: hidden;
            min-height: calc(100vh - var(--window-bottom));
            background:#F8F8F8;background-size: 100% auto;
        }
</style>